<!DOCTYPE html>
<html lang="zh-CN" class="no-js">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width">
	<meta name="keywords" content="GitBlog,markdown,blog,php,github,kts168的博客">
	<meta name="description" content=".">

	<!--[if lt IE 9]>
	<script src="/theme/default/js/html5.js"></script>
	<![endif]-->
	<script>(function(html){html.className = html.className.replace(/\bno-js\b/,'js')})(document.documentElement);</script>
	
	<title>kts168的博客</title>
	
	<link rel="stylesheet" href="/theme/default/css/genericons.css?ver=2.2" type="text/css" media="all" />
	<link rel="stylesheet" href="/theme/default/css/style.css?ver=2.2" type="text/css" media="all" />
	<link rel="stylesheet" href="/theme/default/css/markdown.css?ver=2.2" type="text/css" media="all" />
	<link rel="alternate" type="application/rss+xml" title="kts168的博客" href="/feed.xml" />
	<!--[if lt IE 9]>
	<link rel="stylesheet" href="/theme/default/css/ie.css?ver=2.2" type="text/css" media="all" />
	<![endif]-->
	<!--[if lt IE 8]>
	<link rel="stylesheet" href="/theme/default/css/ie7.css?ver=2.2" type="text/css" media="all" />
	<![endif]-->
	
	<script type="text/javascript" src="/theme/default/js/jquery/jquery.js?ver=2.2"></script>
	<script type="text/javascript" src="/theme/default/js/jquery/jquery-migrate.min.js?ver=2.2"></script>
	
	<script>
	var _hmt = _hmt || [];
	(function() {
	  var hm = document.createElement("script");
	  hm.src = "//hm.baidu.com/hm.js?732acc76ff6bd41343951a67cbfafe30";
	  var s = document.getElementsByTagName("script")[0]; 
	  s.parentNode.insertBefore(hm, s);
	})();
	</script>
	
</head>

<body>
<div id="page" class="hfeed site">
	<a class="skip-link screen-reader-text" href="#content">Skip to content</a>
	
	    <div id="sidebar" class="sidebar">
	<header id="masthead" class="site-header" role="banner">
		<div class="site-branding">
			<h1 class="site-title"><a href="/" rel="home">kts168的博客</a></h1>
				<p class="site-description">自豪地采用GitBlog</p>
				<button class="secondary-toggle">菜单和挂件</button>
		</div><!-- .site-branding -->
	</header><!-- .site-header -->
	<div id="secondary" class="secondary">
		<div id="widget-area" class="widget-area" role="complementary">
		
			<aside id="categories" class="widget widget_categories">
    <h2 class="widget-title">分类目录</h2>
    <ul>
                <li class="cat-item"><a href="/category/GitBlog.html" >GitBlog</a></li>
            </ul>
</aside>
		    <aside class="widget widget_archive">
    <h2 class="widget-title">文章归档</h2>
    <ul>
        <li><a href="/archive/201507.html">2015-07</a></li>
        </ul>
</aside>
		    <aside id="recent-posts" class="widget widget_recent_entries">
    <h2 class="widget-title">近期文章</h2>
    <ul>
        <li><a href="/blog/install.html">GitBlog安装</a></li>
        <li><a href="/blog/struct.html">GitBlog目录结构</a></li>
        <li><a href="/blog/config.html">GitBlog配置</a></li>
        <li><a href="/blog/edit.html">编写GitBlog博客</a></li>
        <li><a href="/blog/other-func.html">GitBlog评论，订阅，统计等功能</a></li>
        </ul>
</aside>
		    <aside id="tag_cloud" class="widget widget_tag_cloud">
    <h2 class="widget-title">标签</h2>
    <div class="tagcloud">
        <a href="/tags/GitBlog.html" title="GitBlog" >GitBlog</a>
        </div>
</aside>
		    <aside id="text" class="widget widget_text">
    <h2 class="widget-title">简介</h2>	
    <div class="textwidget">
    	<p>GitBlog是一个简单易用的Markdown博客系统，这是我的第一个GitBlog博客</p>
    </div>
</aside>
	    </div><!-- .widget-area -->
    </div><!-- .secondary -->
</div><!-- .sidebar -->  
	    <div id="content" class="site-content">
	<div id="primary" class="content-area">
        <div id="main" class="site-main" role="main">
    	    	<header class="page-header">
			<h1 class="page-title">标签：GitBlog</h1>
		</header><!-- .page-header -->
    	    	
                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/install.html" rel="bookmark">GitBlog安装</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>这是Giblog的一个简单安装教程，如果你熟悉PHP或Web开发，这对你来说一定非常简单。本教程只针对Linux+Nginx环境，对于使用Apache的用户请参考Apache配置章节。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-30</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/struct.html" rel="bookmark">GitBlog目录结构</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>GitBlog采用流行的PHP框架CodeIgniter开发，只是我对一些目录进行了重命名。如果你熟悉CodeIgniter框架，那你一定不会陌生。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-29</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/config.html" rel="bookmark">GitBlog配置</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>这是Giblog的一个简单安装教程，如果你熟悉PHP或Web开发，这对你来说一定非常简单。本教程只针对Linux+Nginx环境，对于使用Apache的用户配置参考网上其他资料。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-28</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/edit.html" rel="bookmark">编写GitBlog博客</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>一篇GitBlog就是一个markdown文件，GitBlog使用解析markdown文件为html展示在网页上。所有的博客markdown文件必须放在posts文件夹里。后缀名只可以是xx.md或者xx.markdown。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-27</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/other-func.html" rel="bookmark">GitBlog评论，订阅，统计等功能</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>GitBlog支持评论，订阅，百度统计相关功能，这些功能可由conf.yaml配置开启或关闭，评论采用多说评论框，统计采用百度统计。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-26</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/cache.html" rel="bookmark">GitBlog的缓存机制</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>由于GitBlog没有数据库，是依靠解析posts文件夹中的markdown文件来展示表客数据的。通常我们写好一篇博客以后，对其进行修改的频率并不高。GitBlog没必要每次访问页面时，都去解析markdown文件。基于这个理由，GitBlog对数据进行了缓存，GitBlog的缓存有三个层面的实现。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-25</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/export.html" rel="bookmark">GitBlog全站静态导出</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>GitBlog支持把整个博客网站导出为静态HTML文件，这样导出整个网站后，可以把它上传到网站空间，以静态形式访问，导出的后的网站结构和运行在PHP环境中一样。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-24</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/theme.html" rel="bookmark">GitBlog主题制作</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>此文档编写中...如果你想制作主题可以先参考源码包中现有主题，GitBlog主题模板采用<a href="http://twig.sensiolabs.org/">Twig</a>引擎，你可以通过官方文档学习模板语法</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-23</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/apache.html" rel="bookmark">在Apache上运行GitBlog</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>GitBlog在Aapche上运行需要开启Aapche Rewrite模块以支持GitBlog的伪静态URL。并且要配置.htaccess文件可用，然后在.htaccess文件中配置Rewriter规则。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-22</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                	        	<article class="post hentry">
<header class="entry-header">
	<h2 class="entry-title"><a href="/blog/nginx.html" rel="bookmark">在Nginx上运行GitBlog</a></h2>
</header><!-- .entry-header -->
<div class="entry-content">
<p>如果你自己拥有服务器或者云平台提供的云主机，我推荐你使用Linux+<a href="http://nginx.org/">Nginx</a>来运行GitBlog，如果你目前只有Apache环境也是可以的。</p>
</div><!-- .entry-content --><footer class="entry-footer">
	    <span class="posted-on">
        <span class="screen-reader-text">Posted on </span>
        <time class="entry-date published">2015-07-22</time>
    </span>
		
	    <span class="byline">
        <span class="author vcard">
            <span class="screen-reader-text">Author </span>
            jockchou
        </span>
    </span>
        
        <span class="cat-links">
        <span class="screen-reader-text">Categories </span>
          
           <a href="/category/GitBlog.html" rel="category">GitBlog</a>
            </span>
        
    
        <span class="tags-links">
    	
        <span class="screen-reader-text">Tags </span>
          
           <a href="/tags/GitBlog.html" rel="tag">GitBlog</a>
            </span>
    </footer><!-- .entry-footer --></article><!-- #post-## -->        	                
        <nav class="navigation pagination" role="navigation">
	<h2 class="screen-reader-text">文章导航</h2>
	<div class="nav-links">
				
								<span class="page-numbers current"><span class="meta-nav screen-reader-text">Page </span>1</span>
			        			        	<a class="page-numbers" href="/archive/201507/page/2.html"><span class="meta-nav screen-reader-text">Page </span>2</a>
        	        		
				<a class="next page-numbers" href="/archive/201507/page/2.html">Next page</a>
			</div>
</nav>
        
    	</div>
    </div><!-- .content-area -->
</div><!-- .site-content -->	    <footer id="colophon" class="site-footer" role="contentinfo">
    <div class="site-info">
        <!--<a href="https://github.com/jockchou/gitblog">Proudly powered by Gitblog</a>-->
    </div><!-- .site-info -->
</footer><!-- .site-footer -->
	
</div><!-- .site -->
<script type="text/javascript" src="/theme/default/js/skip-link-focus-fix.js?ver=2.2"></script>
<script type="text/javascript">
/* <![CDATA[ */
var screenReaderText = {"expand":"<span class=\"screen-reader-text\">\u5c55\u5f00\u5b50\u83dc\u5355<\/span>","collapse":"<span class=\"screen-reader-text\">\u6298\u53e0\u5b50\u83dc\u5355<\/span>"};
/* ]]> */
</script>
<script type="text/javascript" src="/theme/default/js/functions.js?ver=2.2"></script>

<link rel="stylesheet" href="//cdn.bootcss.com/highlight.js/8.6/styles/github.min.css">
<script src="//cdn.bootcss.com/highlight.js/8.6/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>

<script type="text/x-mathjax-config">MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});</script>
<script type="text/javascript" src="//cdn.bootcss.com/mathjax/2.5.3/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

</body>
</html>
